@echo off
:: echo 参数[0] = %0
:: echo 参数[1] = %1
:: echo 参数[2] = %2
:: echo 参数 %~dp0
REM 切换代码页到英语（CP437，兼容 ASCII）
chcp 437 > nul

@REM chafa -f sixel --size 80x40 %* 
@REM chafa -f sixel --size 80x40 %* > output.six 2>&1
@REM echo Exit Code: %ERRORLEVEL% >> debug.log
@REM certutil -encodehex output.six debug_hex.log

@REM powershell.exe -Command C:\Users\Alice\AppData\Local\lf\preview.ps1 %1
powershell.exe -ExecutionPolicy Bypass  -Command  %USERPROFILE%\AppData\Local\lf\preview.ps1 %1
@REM chafa -f sixel  %1